/*class Person{

    private String name = "Person";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    int age=0;

}

public class Test extends Person{

    public String grade;

    public static void main(String[] args){
        Person p = new Test();
        System.out.println(p.getName());

    } 
}*/
/*class B {
    public int Func() {
        System.out.print("B");
        return 0;
    }
}
class D extends B {

    @Override
    public int Func() {
        System.out.print("D");
        return 0;
    }
}
public class Test {
    public static void main(String[] args) {
        B a = new B();
        B b = new D();
        a.Func();
        b.Func();
    }
}*/
/*
class Animal{
    public String name;
    public int age;

    public void sleep(){
        System.out.println("睡觉");
    }
}
*/
//抽象类
/*abstract class  Animal{
    public String name;
    public int age;
    //抽象方法（没有方法体）
    abstract public void sleep();

}*/
/*abstract class  Animal{
    public String name;
    public int age;

    abstract private void sleep1();

    abstract public final void sleep2();

    abstract public static void sleep2();

}*/


/*abstract class  Animal {
    public String name;
    public int age;

    abstract public void sleep();
}

class Dog1 extends Animal{

}
class Dog2 extends Animal {

    @Override
    public void sleep() {
        //重新方法
    }
}
abstract class Dog3 extends Animal{

}*/

public class Test {
    public static void main(String[] args){
        /*Animal animal = new Animal();*/
    }

}



















